let path = require('path');

// console.log(Object.keys(path));

var my_path = path.resolve('D:\\gits\\express_demo\\public\\images\\mm1522826949803a701su2093595565650.jpg');

console.log(path.basename(my_path));
console.log(path.normalize(my_path));
console.log(path.extname(my_path));
console.log(path.dirname(my_path));